import request from '@/utils/request'

// 查询记录温度和湿度数据列表
export function listTemperaturerecord(query) {
  return request({
    url: '/seedlingSys/temperaturerecord/list',
    method: 'get',
    params: query
  })
}

// 查询记录温度和湿度数据详细
export function getTemperaturerecord(recordID) {
  return request({
    url: '/seedlingSys/temperaturerecord/' + recordID,
    method: 'get'
  })
}

// 新增记录温度和湿度数据
export function addTemperaturerecord(data) {
  return request({
    url: '/seedlingSys/temperaturerecord',
    method: 'post',
    data: data
  })
}

// 修改记录温度和湿度数据
export function updateTemperaturerecord(data) {
  return request({
    url: '/seedlingSys/temperaturerecord',
    method: 'put',
    data: data
  })
}

// 删除记录温度和湿度数据
export function delTemperaturerecord(recordID) {
  return request({
    url: '/seedlingSys/temperaturerecord/' + recordID,
    method: 'delete'
  })
}
